<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
%>
<!--#include file=..\checkSession.inc-->
<!--#include file=..\jvGrid.inc-->
<!--#include file="..\jvfunction.inc"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title>
</head>
<%
idvtden=request("idvtden")
%>
<script language=javascript>
function CmdDongY_onclick()
{
ngayht=noidung.TxtNgayHT.value;
if (ngayht!=""){
	if (noidung.R1.checked)
		{	
			noidung.target="right";
			noidung.action="frmselectvtdi.asp?bidvtden="+"<%=idvtden%>"+"&bngayhtxl="+ngayht;
			noidung.submit();
			window.close();
		}
	if (noidung.R2.checked)
		{
			noidung.target="right";
			noidung.action="frmketquaxuly.asp?idvtden="+"<%=idvtden%>"+"&bngayht="+ngayht;
			noidung.submit();
			window.close();
		}
	}
	else
	{
	alert("Bạn cần nhập ngày hoàn thành!");
	noidung.TxtNgayHT.focus();
	}
}
function rdotutao_onclick()
{
if (noidung.R1.checked)
	{
	noidung.R2.checked=false;
	//noidung.Chkhtluong.checked=false;
	//noidung.Chkhtluong.disabled=true;
	}
}
function rdoluongmau_onclick()
{
if (noidung.R2.checked)
	{
	noidung.R1.checked=false;
	//noidung.Chkhtluong.disabled=false;
	}
}
function TxtNgayHT_onkeyup(str){
var keycode
keycode=window.event.keyCode
	if (isEdit(keycode,str)){
		noidung.TxtNgayHT.value=editdate(trim(str))
	}
}
</script>
<script language=VBScript runat=server>
	Function FormatDate(vDate)
	   If Not IsNull(vDate) Then
	        vM = Right("0" & Month(vDate), 2)
	        vD = Right("0" & Day(vDate), 2)
	        vY = Right("19" & Year(vDate), 4)
	        FormatDate = vD & "/" & vM & "/" & vY
	   End If
	End Function
	Function SaveDate(vDate)
		dim bvitri1
		dim bvitri2
	    if vDate<>"" then
		   vDate=trim(cstr(vDate))
		   bvitri1=instr(1,vDate,"/")
		   bMonth=left(vDate,bvitri1-1)
		   bvitri2=instr(bvitri1+1,vDate,"/")
		   Dim Temp
		   Temp=right(vDate,len(vDate)-bvitri1)
		   bDay=left(Temp,bvitri2-bvitri1-1)
		   bYear=right(vDate,len(vDate)-bvitri2)
		   SaveDate=bDay+"/"+bMonth+"/"+bYear
		else
			SaveDate=""
		end if
	End Function
</script>
<body style="font-family: Times New Roman" topmargin=0 leftmargin=0 bgcolor=#BDD5D0>
<form method="post" name="noidung">
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table width=100% bgColor="#BDD5D0" border="0" cellpadding="1" cellspacing="0">
<tr>
	<td width=100% colspan="2">
	<p align="center"><font face="arial" size="2"><b>HOÀN THÀNH XỬ LÝ</b></font></td>
</tr>
</table>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table width=100% bgColor="#BDD5D0" border="0" borderColor="#111111" cellpadding="0" cellspacing="0"  style="FONT-SIZE:9pt;font-family: Arial" >
<tr>
<td width=40% height="24" align="center">Ngày hoàn thành</td>
<td width=60% height="24" align="left"><input type=text name=TxtNgayHT value="<%=FormatDate(Date())%>" maxLength=10 size=10 style="font-family: Arial; width:70%" LANGUAGE=javascript onkeyup="return TxtNgayHT_onkeyup(this.value)"></td>
</tr>
<tr>
	<td width=100% colspan="2" height="24">
	&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="radio" ID=R1 checked name =rdotutao LANGUAGE=javascript onclick="return rdotutao_onclick()"><label for=R1>Có kèm công văn đi</label>
	</td>
</tr>
<tr>
<td width=100% colspan="2" height="24">
&nbsp;&nbsp;&nbsp;&nbsp;
<input type="radio" ID=R2 name=rdoluongmau LANGUAGE=javascript onclick="return rdoluongmau_onclick()"><label for=R2>Không kèm công văn đi<label>
</td>
</tr>
</table>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0 style="table-layout: fixed; height: 1px">
	<tr><td style="width: 100%; height: 1px; background-color: 808080">&nbsp;</td></tr>
	<tr><td style="width: 100%; height: 1px; background-color: white">&nbsp;</td></tr>
</table>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table><table cellspacing=1 cellpadding=1 border=0>
<tr>
<td style="width: 100%"></td>
</tr>
</table>
<table width=100% bgColor="#BDD5D0" border="0" cellpadding="1" cellspacing="0">
<tr>
<td width='100%'>
<center><input type="button" value="Đồng Ý" name="CmdDongY" style="height:25; width:80" LANGUAGE=javascript onclick="return CmdDongY_onclick()">
<input type="button" value="Bỏ qua" name="CmdBoQua" style="height: 25; width: 80" LANGUAGE=javascript onclick="javascript:window.close()"></center></td>
</tr>
</table>
</form>
</body>
</html>